﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace HodhodNews.Extraction
{
    public abstract class NewsExtractionProvider
    {
        public abstract ExtractedNews Extract(ExtracationOptions options);

        public static NewsExtractionProvider GetProvider(ExtractionAlgorithm algorithm)
        {
            switch (algorithm)
            {
                case ExtractionAlgorithm.Boilerpipe:
                    return new BoilerpipeNewsExtractionProvider();
                default:
                    return new CommonParentNewsExtractionProvider();
            }
        }

        public static NewsExtractionProvider Insance
        {
            get
            {
                return new CommonParentNewsExtractionProvider();
            }
        }
    }
}
